package edu.ctbu.ctbujsj.service;


import edu.ctbu.ctbujsj.dao.AreaRepository;
import edu.ctbu.ctbujsj.domain.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaService {

    @Autowired
    public AreaRepository  areaRepository;

    public List<Area> findByParentId(long ParentID){

        List<Area> myList=areaRepository.findByParentId(ParentID);

        return myList;



    }
}
